
package org.xteam.pascal.parser.ast;

import org.xteam.parser.runtime.Span;

public class Case extends Statement {
	
	public org.xteam.parser.runtime.reflect.AstNodeType getNodeType() {
		return PascalAstPackage.INSTANCE.getCaseType();
	}
	
	protected Expression condition;
	protected org.xteam.parser.runtime.AstList<CaseArm> arms;
	
	public Case(Span span, Expression condition,org.xteam.parser.runtime.AstList<CaseArm> arms) {
		super(span);
		this.condition = condition;
		this.arms = arms;
	}
	
	
	public Expression getCondition() {
		return condition;
	}
	
	public void setCondition(Expression condition) {
		this.condition = condition;
	}
	
	public org.xteam.parser.runtime.AstList<CaseArm> getArms() {
		return arms;
	}
	
	public void setArms(org.xteam.parser.runtime.AstList<CaseArm> arms) {
		this.arms = arms;
	}
	

	public void visit(IPascalVisitor visitor) {
		visitor.visitCase(this);
	}
}
